-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[@azure-tools/cadl-ranch-specs] - Handle PassOnCode, Remove Handler & Remove commonapi.ts file #755
Conversation
🦋 Changeset detectedLatest commit: 0a0f8d5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but lets keep this PR open one day as a FYI for shanghai folks just in case it will break
packages/cadl-ranch-specs/http/azure/client-generator-core/access/mockapi.ts
Show resolved
Hide resolved
...cadl-ranch-specs/http/azure/resource-manager/models/common-types/managed-identity/mockapi.ts
Outdated
Show resolved
Hide resolved
@sarangan12 I merged a PR that contains conflicts with your PR: It reorganized ARM scenarios, mostly renames. Let me know if you run into any issues. |
for Azure/cadl-ranch#755, as some tests validate the exact value of some parameter/property. for the 2 file with only format change, I guess the reason is Alan enabled spotless on emitter Java code (so `mvn package` would automatically format the code)
packages/cadl-ranch-specs/http/azure/client-generator-core/access/mockapi.ts
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to update some of tests scenario docs as this comment mentioned. Previous, many tests allow request param as any value, and return that value as response. After this PR, they are all fixed.
… tests (#4799) While working with China Team in Azure/cadl-ranch#755, I have found that a few changes are required in the specs to handle the test success in `http-client-java`, `http-client-net` and `http-client-python` packages. This PR handles those changes. The scenarios are also validated using the `test:e2e` script. Please review and approve the PR. Thanks
for Azure/cadl-ranch#755, as some tests validate the exact value of some parameter/property. for the 2 file with only format change, I guess the reason is Alan enabled spotless on emitter Java code (so `mvn package` would automatically format the code)
… tests (microsoft#4799) While working with China Team in Azure/cadl-ranch#755, I have found that a few changes are required in the specs to handle the test success in `http-client-java`, `http-client-net` and `http-client-python` packages. This PR handles those changes. The scenarios are also validated using the `test:e2e` script. Please review and approve the PR. Thanks
This PR consists of of the following changes:
passOnSuccess
instead ofpassOnCode
. In this PR, it is changed back topassOnCode
.typespec
repository.test:e2e
script broke. Now, in themain
branch -cadl-ranch-specs
repository, if you run thepnpm test:e2e
script, it will error out. This is happening because in one of the scenario, the way array's are expected and the way axios is sending it. But, with thehandler
code removed this is automatically fixed.commonapi.ts
underauthetication
folder is no longer required. That file is removed.Please review and approve the PR. Thanks